package com.cxc.observer;
import java.util.Observable;
import java.util.Observer;
public class ObserverB  implements Observer{

	private int myState;
	
	public int getMyState() {
		return myState;
	}

	public void setMyState(int myState) {
		this.myState = myState;
	}

	public void update(Observable o, Object arg) {
		
		myState =  ((ConcreateOtherSubject)o).getState();
	}

}
